import { userActions } from '../actions/user.js';
import { userGetters } from '../getters/user.js';
import { userMutations } from '../mutations/user.js';

/*首页菜单数据保留位 提前加载缓存*/ 

/****/

const state = {
	// 状态管理数据将注入vue 定义state数据请加store_前缀以区分
	store_token: '',
	store_user_code: '',
	store_face_url:'',
	store_expire_time: '',
	store_home_menu: [],
	store_is_vol: 0 ,// 是否志愿者 0：普通会员(优先判断是否登录token) 1：志愿者
	store_areaInform:{
		areaCode:"",
		cityName:"北京"
	}
};

export const user = {
	state: state,
	actions: userActions,
	getters: userGetters,
	mutations: userMutations,
}